<!DOCTYPE html>
<!--suppress ALL-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>直播弹幕列表</title>
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">

</head>

<style>
  a{
    color: #ffffff;
  }
  h1{
    /*文字对齐*/
    text-align: center;
  }
</style>
<body>
<div class="container">
  <h1>直播弹幕系统</h1>
  <a th:href="@{add.html}">新增</a>
  <form th:action="@{/barrage-log/list3}" th:method="post">
    网站类型<input type="text" name="typeCode" th:value="${typeCodee}"/>
    <input type="submit" value="查询"/>
  </form>
</div>

<table class="table table-striped table-bordered table-hover text-center">
  <thead>
  <tr>
    <td>id</td>
    <td>平台名称</td>
    <td>用户名</td>
    <td>弹幕时间</td>
    <td>弹幕内容</td>
    <td>操作</td>
  </tr>
  </thead>
  <tr th:each="barrageLog : ${page.list}">
    <td style="vertical-align: middle!important;"  th:text="${barrageLog.id}"></td>
    <td style="vertical-align: middle!important;"  th:text="${barrageLog.typeName}"></td>
    <td style="vertical-align: middle!important;"  th:text="${barrageLog.userName}"></td>
    <td style="vertical-align: middle!important;"  th:text="${#dates.format(barrageLog.createTime,'yyyy-MM-dd HH:ss:mm')} "></td>
    <td style="vertical-align: middle!important;"  th:text="${barrageLog.content}"></td>
    <td>
      <a style="vertical-align: middle!important;" th:href="@{'/del?id=' + ${barrageLog.id}}">删除</a>
      <a style="vertical-align: middle!important;"  th:href="@{'/findById?id=' + ${barrageLog.id}}">编辑</a>
    </td>
  </tr>
</table>
</body>
<div th:insert="pages :: page"></div>
</html>
